﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;
using System.Windows.Forms;

namespace SomaiNordeste.FabricaRacao.DomainModel.Repository
{
    public static class DataGridViewExtensionMethod
    {
        public static void InsumosFormataGridView(this DataGridView grd)
        {
            grd.Columns[0].Width = 160;
            grd.Columns[1].Width = 140;
            grd.Columns[2].Width = 45;
            grd.Columns[3].Width = 60;
        }

        public static void BatidaFormataGridView(this DataGridView grd)
        {
            grd.Columns[0].Width = 140;
            grd.Columns[1].Width = 100;
            grd.Columns[2].Width = 45;
            grd.Columns[3].Width = 60;
            grd.Columns[4].Width = 50;
        }

        public static void  RacaoManuaisFormataGridView(this DataGridView grd)
        {
            grd.Columns[0].Width = 140;
            grd.Columns[1].Width = 100;
            grd.Columns[2].Width = 45;
            grd.Columns[3].Width = 60;
        }
    }
}
